update_schema = {
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "order_id": {"type": "string"},
            "source_order": {"type": "string"},
            "sku_id": {"type": "string"},
            "amount": {"type": "integer", "minimum": 1},
            "warehouse_id": {"type": "string"},
            "warehouse_name": {"type": "string"},
            "business_type": {"type": "integer"},
            "order_type": {"type": "integer"},
            "user_id": {"type": "string"},
            "status_id": {"type": "integer"},
            "business_no": {"type": "string"}
        }
    }
}

if __name__ == "__main__":
    from jsonschema import validate
    data = [{
        "order_id": "DDX13035108295",
        "sku_id": "10000904",
        "amount": 1,
        "warehouse_id": "GZ0001",
        "warehouse_name": "广州WMS",
        "business_type": 2,
        "order_type": 2,
        "user_id": "dtc",
        "status_id": 1,
        "business_no": "30d1983f6b29445d9268f30f57fa5211",
    }]
    validate(data, update_schema)
